<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>账户注册</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
        }
        .container {
            display: flex;
            min-height: 100vh;
        }
        .sidebar {
            width: 200px;
            background-color: #f4f4f4;
            padding: 20px;
            box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        }
        .button {
            display: block;
            width: 100%;
            margin-bottom: 10px;
            padding: 10px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 5px;
            text-align: center;
            cursor: pointer;
            text-decoration: none;
        }
        .button:hover {
            background-color: #45a049;
        }
        .content {
            flex-grow: 1;
            padding: 20px;
        }
        h1 {
            color: #333;
            margin-bottom: 20px;
        }
        form {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }
        label {
            font-weight: bold;
            margin-bottom: 5px;
            display: block;
        }
        .form-group {
            display: flex;
            flex-direction: column;
            width: calc(50% - 20px); /* 两列布局 */
        }
        .form-group.full-width {
            width: 100%;
        }
        input, textarea {
            width: 100%;
            padding: 10px;
            margin-top: 5px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-sizing: border-box;
        }
        textarea {
            resize: none;
        }
        .submit-group {
            width: 100%; /* 按钮独占一行 */
            display: flex;
            justify-content: flex-start; /* 左对齐按钮 */
            margin-top: 10px; /* 与上方保持间距 */
        }
        .submit-button {
            width: 150px;
            height: 40px;
            background-color: #4CAF50;
            font-size: 16px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            text-align: center;
        }
        .submit-button:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
<div class="container">
    <!-- 左侧按钮区域 -->
    <div class="sidebar">
        <button class="button" onclick="window.location.href='/viewTeams'">信息浏览</button>
        <button class="button" onclick="window.location.href='/accountRegister'">账户注册</button>
        <button class="button" onclick="window.location.href='/interactiveFeature'">互动功能</button>
    </div>

    <!-- 右侧内容区域 -->
    <div class="content">
        <h1>账户注册</h1>
        <form action="/submitRegistration" method="post">
            <div class="form-group">
                <label for="nickname">用户昵称:</label>
                <input type="text" id="nickname" name="nickname" required>
            </div>
            <div class="form-group">
                <label for="name">用户姓名:</label>
                <input type="text" id="name" name="name" required>
            </div>
            <div class="form-group">
                <label for="password">密码:</label>
                <input type="password" id="password" name="password" required>
            </div>
            <div class="form-group">
                <label for="email">邮箱:</label>
                <input type="email" id="email" name="email" required>
            </div>
            <div class="form-group full-width">
                <label for="applicationReason">申请理由:</label>
                <textarea id="applicationReason" name="applicationReason" rows="4" required></textarea>
            </div>
            <div class="form-group">
                <label for="securityQuestion">密保问题:</label>
                <input type="text" id="securityQuestion" name="securityQuestion" required>
            </div>
            <div class="form-group">
                <label for="securityAnswer">密保答案:</label>
                <input type="text" id="securityAnswer" name="securityAnswer" required>
            </div>
            <div class="form-group">
                <label for="phoneNumber">联系方式:</label>
                <input type="text" id="phoneNumber" name="phoneNumber" required>
            </div>
            <div class="submit-group">
                <button class="button submit-button" type="submit">提交注册</button>
            </div>
        </form>
    </div>
</div>
</body>
</html>

